package com.group3.pojo.result;

import lombok.Data;

/**
 * @ClassName GroupStudentResult
 * @Author WenhaoChen
 * @Date 2021/7/15 19:59
 **/
@Data
public class GroupStudentResult {
    private Integer studentId;

    private Integer groupId;

    private String type;

    public void setType(Integer type){
        switch (type){
            case 0 : this.type = "前端开发";break;
            case 1 : this.type = "后台开发";break;
            case 2 : this.type = "测试";break;
            case 3 : this.type = "项目经理";break;
            case 4 : this.type = "产品经理";break;
            case 5 : this.type = "UI";break;
        }
    }

    private String studentName;

    private String groupName;

    private Integer groupLeaderId;

    public void setGroupLeaderId(Integer groupLeaderId){
        this.groupLeaderId = groupLeaderId;
        if (groupLeaderId == this.studentId){
            this.isGroupLeader = "√";
        }
    }

    private String lessonName;

    private String tel;

    private String groupLeaderName;

    private String isGroupLeader;
}
